Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top k fix #376

Merged
merged 2 commits into from
Jun 20, 2023
Merged

Top k fix #376

merged 2 commits into from
Jun 20, 2023

Conversation

mattdangerw
Copy link
Member

Allow passing sorted=False on all backends. Returning a sorted array in that case is better than an error only for jax.

`sorted=True` is a strictly stronger guarantee than `sorted=False`, so
better to always return `sorted=True` than add an annoying inconsistency
between what backends support what.
Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fchollet fchollet merged commit 6f61f78 into main Jun 20, 2023
@fchollet fchollet deleted the top-k-fix branch July 17, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants